﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Library
{
    public partial class HoaDonNhap
    {
        public static List<HoaDonNhap> GetList()
        {
            return DalHoaDonNhap.GetList();
        }

        public static List<HoaDonNhap> FilterList(DateTime from, DateTime to, List<HoaDonNhap> lst)
        {
            return DalHoaDonNhap.GetListByNgay(from, to, lst);
        }

        public HoaDonNhap(String _mahdn, String _manv, String _tenncc, DateTime _ngay, String _thanhtien)
        {
            MaHDN = _mahdn;
            MaNV = _manv;
            TenNCC = _tenncc;
            Ngay = _ngay;
            ThanhTien = Convert.ToInt32(_thanhtien);
        }

        public void Add()
        {
            DalHoaDonNhap.Add(this);
        }
    }
}
